#ifndef PROJECTSFILEMASKSDLG_H
#define PROJECTSFILEMASKSDLG_H

#include <wx/dialog.h>
#include "filegroupsandmasks.h"

class ProjectsFileMasksDlg : public wxDialog
{
	public:
		ProjectsFileMasksDlg(wxWindow* parent, FilesGroupsAndMasks* fgam);
		virtual ~ProjectsFileMasksDlg();
		
		void OnUpdateUI(wxUpdateUIEvent& event);
		void OnAdd(wxCommandEvent& event);
		void OnEdit(wxCommandEvent& event);
		void OnDelete(wxCommandEvent& event);
		void OnListChanged(wxCommandEvent& event);
	protected:
	private:
		void RebuildList();
		void ListChange();

		virtual void EndModal(int retCode);
		FilesGroupsAndMasks m_FileGroups;
		FilesGroupsAndMasks* m_pOrigFileGroups;
		int m_LastListSelection;
		
		DECLARE_EVENT_TABLE();
};

#endif // PROJECTSFILEMASKSDLG_H
